{include file="public_head" /}
<!-- upload -->
<link href="__STATIC__/css/uploads.css" rel="stylesheet">


<body class="nav-md">

<div class="container body">

    <div class="main_container">

        {include file="public_sidebar,public_nav" /}
        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">

                <div class="page-title">
                    <div class="title_left">
                        <h3></h3>
                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>礼包二级订单添加/修改
                                    <!--<small>different form elements</small>-->
                                </h2>
                                <ul class="nav navbar-right panel_toolbox">
                                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                    </li>
                                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                                    </li>
                                </ul>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <br/>
                                <form class="form-horizontal form-label-left" enctype="multipart/form-data" action="" method="post" id="registerForm">

                                    <div class="divider-dashed"></div>
                                    {eq name=":request()->action()" value="create"}
                                    <div class="form-group tc">
                                        <label class="control-label col-md-3" style="">订 单 号</label>
                                        <div class="col-md-2" style="margin-top: 10px;">
                                            <div>{$item.order_number}&nbsp;&nbsp;&nbsp;&nbsp;</div>
                                        </div>
                                    </div>
                                    <div class="form-group tc">
                                        <label class="control-label col-md-3">买家账号：</label>
                                        <div class="col-md-6" style="margin-top: 10px;">
                                            <div>{$item.username}&nbsp</div>
                                        </div>
                                    </div>
                                    <div class="form-group tc">
                                        <label class="control-label col-md-3">车牌号：</label>
                                        <div class="col-md-6" style="margin-top: 10px;">
                                            <div>{$item.car_number}</div>
                                        </div>
                                    </div>
                                    {else/}
                                    <div class="form-group tc">
                                        <label class="control-label col-md-3" style="">订 单 号</label>
                                        <div class="col-md-2" style="margin-top: 10px;">
                                            <div>{$item2.order_number}&nbsp;&nbsp;&nbsp;&nbsp;</div>
                                        </div>
                                    </div>
                                    <div class="form-group tc">
                                        <label class="control-label col-md-3">买家账号：</label>
                                        <div class="col-md-6" style="margin-top: 10px;">
                                            <div>{$item2.username}&nbsp</div>
                                        </div>
                                    </div>
                                    <div class="form-group tc">
                                        <label class="control-label col-md-3">车牌号：</label>
                                        <div class="col-md-6" style="margin-top: 10px;">
                                            <div>{$item2.car_number}</div>
                                        </div>
                                    </div>
                                    {/eq}



                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">送检人员：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" required placeholder="请输入送检人员"
                                                   class="form-control col-md-7 col-xs-12" name="sjyr"
                                                   value="{$item2.sjyr|default=''}"
                                                   maxlength="20"
                                                   datatype="*"
                                                   nullmsg="请输入送检人员！" errormsg="请输入送检人员"
                                            >
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">手机号码：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入手机号码"
                                                   class="form-control col-md-7 col-xs-12" name="tel"
                                                   value="{$item2.tel|default=''}"
                                                   maxlength="20"
                                                   datatype="*"
                                                   nullmsg="请输入手机号码！" errormsg="请输入手机号码"
                                            >
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">车主姓名：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入车主姓名"
                                                   class="form-control col-md-7 col-xs-12" name="car_name"
                                                   value="{$item2.car_name|default=''}"
                                                   maxlength="20"
                                                   datatype="*"
                                                   nullmsg="请输入车主姓名！" errormsg="请输入车主姓名"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">车主号码：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入车主号码"
                                                   class="form-control col-md-7 col-xs-12" name="car_tel"
                                                   value="{$item2.car_tel|default=''}"
                                                   maxlength="20"
                                                   datatype="*"
                                                   nullmsg="请输入车主号码！" errormsg="请输入车主号码"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">车牌号码：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入车牌号码"
                                                   class="form-control col-md-7 col-xs-12" name="car_number2"
                                                   value="{$item2.car_number2|default=''}"
                                                   maxlength="20"
                                                   datatype="*"
                                                   nullmsg="请输入车牌号码！" errormsg="请输入车牌号码"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">车辆识别码：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入车辆识别码"
                                                   class="form-control col-md-7 col-xs-12" name="car_code"
                                                   value="{$item2.car_code|default=''}"
                                                   maxlength="20"
                                                   datatype="*"
                                                   nullmsg="请输入车辆识别码！" errormsg="请输入车辆识别码"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">发动机号：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入发动机号"
                                                   class="form-control col-md-7 col-xs-12" name="egine_number"
                                                   value="{$item2.egine_number|default=''}"
                                                   maxlength="20"
                                                   datatype="*"
                                                   nullmsg="请输入发动机号！" errormsg="请输入发动机号"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">品牌型号：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入品牌型号"
                                                   class="form-control col-md-7 col-xs-12" name="brand_models"
                                                   value="{$item2.brand_models|default=''}"
                                                   maxlength="20"
                                                   datatype="*"
                                                   nullmsg="请输入品牌型号！" errormsg="请输入品牌型号"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">注册日期：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input required id="test1" type="text" placeholder="请输入注册日期"
                                                   class="form-control col-md-7 col-xs-12" name="register_time"
                                                   value="{$item2.register_time|default=''}"
                                                   maxlength="20"
                                                   datatype="*"
                                                   nullmsg="请输入注册日期！" errormsg="请输入注册日期"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">图片上传:</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <div id="imgdiv" data-am-widget="gallery" class="am-gallery am-avg-sm-2
am-avg-md-3 am-avg-lg-4 am-gallery-overlay" data-am-gallery="{ pureview: true }">
                                                <img id="imgShow" src="__PUBLIC__/{$item2.single_pic|default=''}"
                                                     width="200" height="190" onerror="this.src='__STATIC__/images/default.png'"
                                                />
                                            </div>
                                            <div class="uploader white">
                                                <input type="text" class="filename" name="single_pic"
                                                       value="{$item2.single_pic|default=''}" readonly/>
                                                <input type="button" name="file" class="button" value="上传..."/>
                                                <input type="file" id="up_img" name="single_pic"
                                                       value='{$item2.single_pic|default=""}'  />
                                            </div>
                                        </div>
                                    </div>


                                    <!--<div class="divider-dashed"></div>-->



                                    <!--<div class="divider-dashed"></div>-->

                                    <!--<div class="form-group">-->
                                        <!--<label class="control-label col-md-3 col-sm-3 col-xs-12">是否确认：</label>-->
                                        <!--<div class="col-md-6 col-sm-6 col-xs-12">-->
                                            <!--<label class="radio_box">-->
                                                <!--<input type="radio" name="status" id="status_1" class="cartradio"-->
                                                       <!--value="1"-->
                                                       <!--datatype="*"-->
                                                       <!--nullmsg="请选择启用状态！" errormsg="请选择启用状态！"-->
                                                       <!--{eq name='item2.status|default=""' value='1' }-->
                                                       <!--checked-->
                                                       <!--{/eq}-->
                                                <!--&gt;&nbsp;&nbsp;-->
                                                <!--<label for="status_1"></label>-->
                                                <!--<span>未确认</span>-->
                                                <!--&nbsp;&nbsp;-->
                                            <!--</label>-->
                                            <!--<label class="radio_box">-->
                                                <!--<input type="radio" name="status" id="status_2" class="cartradio"-->
                                                       <!--value="2"-->
                                                       <!--datatype="*"-->
                                                       <!--nullmsg="请选择启用状态！" errormsg="请选择启用状态！"-->
                                                       <!--{eq name='item2.status|default=""' value='2' }-->
                                                       <!--checked-->
                                                       <!--{/eq}-->
                                                <!--&gt;&nbsp;&nbsp;-->
                                                <!--<label for="status_2"></label>-->
                                                <!--<span>已确认</span>-->
                                                <!--&nbsp;&nbsp;-->
                                            <!--</label>-->
                                        <!--</div>-->
                                    <!--</div>-->

                                    <div class="ln_solid"></div>

                                    <div class="form-group">
                                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                            {if condition="request()->action() eq 'update' && session('role_id') eq 5"}
                                            {else/}
                                            <button onclick="hid(this)" type="submit" class="btn btn-primary">提交</button>
                                            {/if}

                                            <a type="reset" class="btn btn-success" onclick="history.go(-1)">返回</a>
                                        </div>
                                    </div>
<script>
    function hid(t) {
        $(t).hide();
    }
</script>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
            <!-- /page content -->

        </div>

    </div>
</div>

{include file="public_foot" /}

<!-- upload_arr -->
<script src="__STATIC__/js/upload.photos.js"></script>
<script type="text/javascript" src="__STATIC__/plupload/plupload.full.min.js"></script>
<!-- Times -->
<script src='__STATIC__/js/datepicker/WdatePicker.js'></script>
<!-- validform -->
<script src="__STATIC__/js/Validform_v5.3.2_min.js"></script>
<script src="__STATIC__/js/layer.js"></script>
<!-- select -->
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<!-- upload -->
<script type="text/javascript" src="__STATIC__/js/uploadPreview.js"></script>
<!-- Datatables-->
<script src="__STATIC__/js/datatables/jquery.dataTables.min.js"></script>
<script src="__STATIC__/js/datatables/dataTables.bootstrap.js"></script>
<!-- validform -->
<script src="__STATIC__/js/Validform_v5.3.2_min.js"></script>
<script src="__STATIC__/js/layer.js"></script>
<!--upload-->
<script type="text/javascript" src="__STATIC__/js/uploadPreview.js"></script>

<script>
    //upload

    window.onload = function () {
        new uploadPreview({UpBtn: "up_img", DivShow: "imgdiv", ImgShow: "imgShow"});
    }
    //validform
    $(function () {

        $.Tipmsg.r = null;

        var showmsg = function (msg) {
            //假定你的信息提示方法为showmsg， 在方法里可以接收参数msg，当然也可以接收到o及cssctl;
            alert(msg);
        }
        $("#registerForm").Validform({
            tiptype: function (msg) {
                layer.msg(msg);
            },
            tipSweep: true
        });
    })
</script>
<!--与代码无关可以删除-->
<link rel="stylesheet" href="/pic/js/amazeui.min.css" />
<script src="/pic/js/jquery.min.js"></script>
<script src="/pic/js/amazeui.js"></script>

<script src="/laydate/laydate.js"></script> <!-- 改成你的路径 -->
<script>
    laydate.render({
        elem: '#test1'
    });
</script>
</body>

</html>
